/**
 * 
 *//*
package com.jisheng.xb.common;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

import com.jisheng.wx.entity.enums.WechatPubNumber;

*//*
public class WxUtil {

	public static final String AUTHORIZE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
	
	public static String getWxRedirectUrl(String baseUrl,String redirectUrl) {
		String url = baseUrl+"/wx?to="+redirectUrl;
		try {
			url = URLEncoder.encode(url, Constant.Charset);
		} catch (UnsupportedEncodingException e) {
			url = "/error4encode.html";
		}
		return String.format(AUTHORIZE_URL,WechatPubNumber.SFT4TEST.AppId,url);
	}
	
}
*/